package com.wenheng.service.Impl;

import com.wenheng.Mapper.EasybuyUserAddressMapper;
import com.wenheng.service.AdminService;
import com.wenheng.vo.entity.EasybuyUserAddress;
import com.wenheng.vo.entity.EasybuyUserAddressExample;
import com.wenheng.vo.entity.Seckillproduct;
import com.wenheng.vo.entity.SeckillproductExample;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @Auther: 文恒
 * @Date: 2021/3/31 - 03 - 31 -9:52
 * @Description:com.wenheng.service.Impl
 * @version:1.0
 */
@Service
@Transactional
public class AdminServiceImpl implements AdminService{
    @Autowired
    private EasybuyUserAddressMapper easybuyUserAddressMapper;
    @Override
    public List<EasybuyUserAddress> addressInfo(Integer address) {
        EasybuyUserAddressExample easy = new EasybuyUserAddressExample(); //查询出所有的地址信息
        EasybuyUserAddressExample.Criteria criteria = easy.createCriteria();
        criteria.andIdEqualTo(address);
        return easybuyUserAddressMapper.selectByExample(easy);
    }
}
